package com.young4j.springdemo.domain;

import io.searchbox.annotations.JestId;

/**
 *
 */
public class ESListenBook {
    @JestId
    private int id;
    private String name;
    // 演讲者
    private String player;
    // 关键字
    private String keyword;
    // 作者
    private String author;
    // 0.下架 1.上架
    private int status = 1;
    // 书籍类型 1.听书 2.大咖
    private int type;
    private long updateTime = System.currentTimeMillis();

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPlayer() {
        return player;
    }

    public void setPlayer(String player) {
        this.player = player;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(long updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "ESListenBook{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", player='" + player + '\'' +
                ", keyword='" + keyword + '\'' +
                ", author='" + author + '\'' +
                ", status=" + status +
                ", type=" + type +
                ", updateTime=" + updateTime +
                '}';
    }
}
